<?php
my_component_load('xl_builder' , false);
my_component_load('testing' , false); 
my_component_load('yi_global_n', false);
$task =  isset($_GET['task']) ? $_GET['task']: '';
$pr_yearly_income_id=isset($_POST['pr_yearly_income_id']) ? (int) $_POST['pr_yearly_income_id'] : 0 ; 
if($_SERVER['REQUEST_METHOD'] == "POST"){

	if(! isset($_POST['pr_yearly_income_id']))my_direct($_SERVER['HTTP_REFERER']);
	//header("Content-Type: application/xls");;
	//header("Content-Disposition: attachment;filename=rpt_global_umum_yearly_income.xls");
	echo report_pr_komponen_yearly_income($pr_yearly_income_id);
	exit; 
}

$pagename="Download laporan global yearly income";
$content = form_set_download(); 
   
generate_my_web($content, $pagename  );